using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
using System.Data;
using System.Configuration;
using Bussiness.Config;     
using Bussiness.Entity;
namespace Bussiness.ManagerBase
{
                

     public abstract class Vw_aspnet_UsersManagerBase
    {
        public Vw_aspnet_UsersManagerBase()
        {
            Adapter.ConnectionString =  ConnectionConfig.ConnectionString;            
        }
                    
 
        /// <summary>
        /// Them moi du lieu
        /// </summary>
        /// <returns>Vw_aspnet_UsersEntity</returns>
        public Vw_aspnet_UsersEntity Insert(Vw_aspnet_UsersEntity obj)
        { 
            return (Vw_aspnet_UsersEntity) Adapter.Insert(obj);             
        }
 
 
        /// <summary>
        /// Update du lieu theo khoa chinh cua object
        /// </summary>
        /// <returns>Vw_aspnet_UsersEntity</returns>
        public Vw_aspnet_UsersEntity Update(Vw_aspnet_UsersEntity obj)
        { 
            return (Vw_aspnet_UsersEntity)Adapter.Update(obj);             
        }
 
 
        public Vw_aspnet_UsersEntity Delete(Vw_aspnet_UsersEntity obj)
        { 
            return (Vw_aspnet_UsersEntity)Adapter.Delete(obj);             
        }
 


        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ApplicationId duoc set trong object
        /// </summary>
        /// <returns>Vw_aspnet_UsersEntity</returns>
        public Vw_aspnet_UsersEntity DeleteByApplicationId (Vw_aspnet_UsersEntity obj)
        { 
            return (Vw_aspnet_UsersEntity)Adapter.DeleteByField(obj,"ApplicationId");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien ApplicationId 
        /// </summary>
        /// <returns>Vw_aspnet_UsersEntity</returns>
        public Vw_aspnet_UsersEntity DeleteByApplicationId (Guid ApplicationId )
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.ApplicationId = ApplicationId;  
            return (Vw_aspnet_UsersEntity)Adapter.DeleteByField(obj,"ApplicationId");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien IsAnonymous duoc set trong object
        /// </summary>
        /// <returns>Vw_aspnet_UsersEntity</returns>
        public Vw_aspnet_UsersEntity DeleteByIsAnonymous (Vw_aspnet_UsersEntity obj)
        { 
            return (Vw_aspnet_UsersEntity)Adapter.DeleteByField(obj,"IsAnonymous");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien IsAnonymous 
        /// </summary>
        /// <returns>Vw_aspnet_UsersEntity</returns>
        public Vw_aspnet_UsersEntity DeleteByIsAnonymous (bool IsAnonymous )
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.IsAnonymous = IsAnonymous;  
            return (Vw_aspnet_UsersEntity)Adapter.DeleteByField(obj,"IsAnonymous");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien LastActivityDate duoc set trong object
        /// </summary>
        /// <returns>Vw_aspnet_UsersEntity</returns>
        public Vw_aspnet_UsersEntity DeleteByLastActivityDate (Vw_aspnet_UsersEntity obj)
        { 
            return (Vw_aspnet_UsersEntity)Adapter.DeleteByField(obj,"LastActivityDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien LastActivityDate 
        /// </summary>
        /// <returns>Vw_aspnet_UsersEntity</returns>
        public Vw_aspnet_UsersEntity DeleteByLastActivityDate (DateTime LastActivityDate )
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.LastActivityDate = LastActivityDate;  
            return (Vw_aspnet_UsersEntity)Adapter.DeleteByField(obj,"LastActivityDate");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien LoweredUserName duoc set trong object
        /// </summary>
        /// <returns>Vw_aspnet_UsersEntity</returns>
        public Vw_aspnet_UsersEntity DeleteByLoweredUserName (Vw_aspnet_UsersEntity obj)
        { 
            return (Vw_aspnet_UsersEntity)Adapter.DeleteByField(obj,"LoweredUserName");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien LoweredUserName 
        /// </summary>
        /// <returns>Vw_aspnet_UsersEntity</returns>
        public Vw_aspnet_UsersEntity DeleteByLoweredUserName (string LoweredUserName )
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.LoweredUserName = LoweredUserName;  
            return (Vw_aspnet_UsersEntity)Adapter.DeleteByField(obj,"LoweredUserName");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MobileAlias duoc set trong object
        /// </summary>
        /// <returns>Vw_aspnet_UsersEntity</returns>
        public Vw_aspnet_UsersEntity DeleteByMobileAlias (Vw_aspnet_UsersEntity obj)
        { 
            return (Vw_aspnet_UsersEntity)Adapter.DeleteByField(obj,"MobileAlias");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien MobileAlias 
        /// </summary>
        /// <returns>Vw_aspnet_UsersEntity</returns>
        public Vw_aspnet_UsersEntity DeleteByMobileAlias (string MobileAlias )
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.MobileAlias = MobileAlias;  
            return (Vw_aspnet_UsersEntity)Adapter.DeleteByField(obj,"MobileAlias");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>Vw_aspnet_UsersEntity</returns>
        public Vw_aspnet_UsersEntity DeleteByUserId (Vw_aspnet_UsersEntity obj)
        { 
            return (Vw_aspnet_UsersEntity)Adapter.DeleteByField(obj,"UserId");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UserId 
        /// </summary>
        /// <returns>Vw_aspnet_UsersEntity</returns>
        public Vw_aspnet_UsersEntity DeleteByUserId (Guid UserId )
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.UserId = UserId;  
            return (Vw_aspnet_UsersEntity)Adapter.DeleteByField(obj,"UserId");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UserName duoc set trong object
        /// </summary>
        /// <returns>Vw_aspnet_UsersEntity</returns>
        public Vw_aspnet_UsersEntity DeleteByUserName (Vw_aspnet_UsersEntity obj)
        { 
            return (Vw_aspnet_UsersEntity)Adapter.DeleteByField(obj,"UserName");
        }

        /// <summary>
        /// Xoa cac dong du lieu thoa dieu kien UserName 
        /// </summary>
        /// <returns>Vw_aspnet_UsersEntity</returns>
        public Vw_aspnet_UsersEntity DeleteByUserName (string UserName )
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.UserName = UserName;  
            return (Vw_aspnet_UsersEntity)Adapter.DeleteByField(obj,"UserName");
        }

 
        /// <summary>
        /// Lay du lieu theo khoa chinh object
        /// </summary>
        /// <returns></returns>
        public Vw_aspnet_UsersEntity Select(Vw_aspnet_UsersEntity obj)
        { 
            return (Vw_aspnet_UsersEntity) Adapter.Select(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(Vw_aspnet_UsersEntity obj)
        { 
            return  Adapter.SelectWithCondition(obj);             
        }
 
 
        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns></returns>
        public DataTable SelectWithCondition(Vw_aspnet_UsersEntity obj,SelectOptions option)
        {             
            return  Adapter.SelectWithCondition(obj,option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll()
        { 
            return Adapter.SelectAll(new Vw_aspnet_UsersEntity());             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public DataTable SelectAll(SelectOptions option)
        { 
            return Adapter.SelectAll(new Vw_aspnet_UsersEntity(),option);             
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<Vw_aspnet_UsersEntity> SelectAllLST()
        { 
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new Vw_aspnet_UsersEntity()),new Vw_aspnet_UsersEntity());           
        }
 
 
        /// <summary>
        /// Lay tat ca cac du lieu trong table
        /// </summary>
        /// <returns></returns>
        public List<Vw_aspnet_UsersEntity> SelectAllLST(SelectOptions option)
        { 
            return (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectAll(new Vw_aspnet_UsersEntity(),option),new Vw_aspnet_UsersEntity());             
        }
 

        /// <summary>
        /// Lay du lieu theo cac dieu kien ApplicationId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByApplicationId (Vw_aspnet_UsersEntity obj)
        { 
            return Adapter.SelectByField(obj,"ApplicationId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ApplicationId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByApplicationId (Vw_aspnet_UsersEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"ApplicationId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ApplicationId duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_UsersEntity></returns>
        public List<Vw_aspnet_UsersEntity> SelectByApplicationIdLST (Vw_aspnet_UsersEntity obj)
        { 
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ApplicationId"),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ApplicationId duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_UsersEntity></returns>
        public List<Vw_aspnet_UsersEntity> SelectByApplicationIdLST (Vw_aspnet_UsersEntity obj,SelectOptions option)
        { 
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"ApplicationId",option),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ApplicationId 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByApplicationId (Guid ApplicationId )
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.ApplicationId = ApplicationId;  
            return Adapter.SelectByField(obj,"ApplicationId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ApplicationId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByApplicationId (Guid ApplicationId, SelectOptions option)
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.ApplicationId = ApplicationId;  
            return Adapter.SelectByField(obj,"ApplicationId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ApplicationId 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_UsersEntity> SelectByApplicationIdLST (Guid ApplicationId )
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.ApplicationId = ApplicationId;  
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ApplicationId"),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien ApplicationId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_UsersEntity> SelectByApplicationIdLST (Guid ApplicationId, SelectOptions option)
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.ApplicationId = ApplicationId;  
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"ApplicationId",option),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsAnonymous duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIsAnonymous (Vw_aspnet_UsersEntity obj)
        { 
            return Adapter.SelectByField(obj,"IsAnonymous");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsAnonymous duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIsAnonymous (Vw_aspnet_UsersEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"IsAnonymous",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsAnonymous duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_UsersEntity></returns>
        public List<Vw_aspnet_UsersEntity> SelectByIsAnonymousLST (Vw_aspnet_UsersEntity obj)
        { 
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"IsAnonymous"),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsAnonymous duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_UsersEntity></returns>
        public List<Vw_aspnet_UsersEntity> SelectByIsAnonymousLST (Vw_aspnet_UsersEntity obj,SelectOptions option)
        { 
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"IsAnonymous",option),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsAnonymous 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIsAnonymous (bool IsAnonymous )
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.IsAnonymous = IsAnonymous;  
            return Adapter.SelectByField(obj,"IsAnonymous");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsAnonymous duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByIsAnonymous (bool IsAnonymous, SelectOptions option)
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.IsAnonymous = IsAnonymous;  
            return Adapter.SelectByField(obj,"IsAnonymous",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsAnonymous 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_UsersEntity> SelectByIsAnonymousLST (bool IsAnonymous )
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.IsAnonymous = IsAnonymous;  
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"IsAnonymous"),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien IsAnonymous duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_UsersEntity> SelectByIsAnonymousLST (bool IsAnonymous, SelectOptions option)
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.IsAnonymous = IsAnonymous;  
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"IsAnonymous",option),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastActivityDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLastActivityDate (Vw_aspnet_UsersEntity obj)
        { 
            return Adapter.SelectByField(obj,"LastActivityDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastActivityDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLastActivityDate (Vw_aspnet_UsersEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"LastActivityDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastActivityDate duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_UsersEntity></returns>
        public List<Vw_aspnet_UsersEntity> SelectByLastActivityDateLST (Vw_aspnet_UsersEntity obj)
        { 
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LastActivityDate"),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastActivityDate duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_UsersEntity></returns>
        public List<Vw_aspnet_UsersEntity> SelectByLastActivityDateLST (Vw_aspnet_UsersEntity obj,SelectOptions option)
        { 
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"LastActivityDate",option),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastActivityDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLastActivityDate (DateTime LastActivityDate )
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.LastActivityDate = LastActivityDate;  
            return Adapter.SelectByField(obj,"LastActivityDate");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastActivityDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLastActivityDate (DateTime LastActivityDate, SelectOptions option)
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.LastActivityDate = LastActivityDate;  
            return Adapter.SelectByField(obj,"LastActivityDate",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastActivityDate 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_UsersEntity> SelectByLastActivityDateLST (DateTime LastActivityDate )
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.LastActivityDate = LastActivityDate;  
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LastActivityDate"),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LastActivityDate duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_UsersEntity> SelectByLastActivityDateLST (DateTime LastActivityDate, SelectOptions option)
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.LastActivityDate = LastActivityDate;  
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LastActivityDate",option),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LoweredUserName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLoweredUserName (Vw_aspnet_UsersEntity obj)
        { 
            return Adapter.SelectByField(obj,"LoweredUserName");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LoweredUserName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLoweredUserName (Vw_aspnet_UsersEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"LoweredUserName",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LoweredUserName duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_UsersEntity></returns>
        public List<Vw_aspnet_UsersEntity> SelectByLoweredUserNameLST (Vw_aspnet_UsersEntity obj)
        { 
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LoweredUserName"),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LoweredUserName duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_UsersEntity></returns>
        public List<Vw_aspnet_UsersEntity> SelectByLoweredUserNameLST (Vw_aspnet_UsersEntity obj,SelectOptions option)
        { 
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"LoweredUserName",option),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LoweredUserName 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLoweredUserName (string LoweredUserName )
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.LoweredUserName = LoweredUserName;  
            return Adapter.SelectByField(obj,"LoweredUserName");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LoweredUserName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByLoweredUserName (string LoweredUserName, SelectOptions option)
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.LoweredUserName = LoweredUserName;  
            return Adapter.SelectByField(obj,"LoweredUserName",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LoweredUserName 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_UsersEntity> SelectByLoweredUserNameLST (string LoweredUserName )
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.LoweredUserName = LoweredUserName;  
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LoweredUserName"),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien LoweredUserName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_UsersEntity> SelectByLoweredUserNameLST (string LoweredUserName, SelectOptions option)
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.LoweredUserName = LoweredUserName;  
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"LoweredUserName",option),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MobileAlias duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMobileAlias (Vw_aspnet_UsersEntity obj)
        { 
            return Adapter.SelectByField(obj,"MobileAlias");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MobileAlias duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMobileAlias (Vw_aspnet_UsersEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"MobileAlias",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MobileAlias duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_UsersEntity></returns>
        public List<Vw_aspnet_UsersEntity> SelectByMobileAliasLST (Vw_aspnet_UsersEntity obj)
        { 
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MobileAlias"),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MobileAlias duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_UsersEntity></returns>
        public List<Vw_aspnet_UsersEntity> SelectByMobileAliasLST (Vw_aspnet_UsersEntity obj,SelectOptions option)
        { 
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"MobileAlias",option),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MobileAlias 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMobileAlias (string MobileAlias )
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.MobileAlias = MobileAlias;  
            return Adapter.SelectByField(obj,"MobileAlias");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MobileAlias duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByMobileAlias (string MobileAlias, SelectOptions option)
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.MobileAlias = MobileAlias;  
            return Adapter.SelectByField(obj,"MobileAlias",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MobileAlias 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_UsersEntity> SelectByMobileAliasLST (string MobileAlias )
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.MobileAlias = MobileAlias;  
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MobileAlias"),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien MobileAlias duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_UsersEntity> SelectByMobileAliasLST (string MobileAlias, SelectOptions option)
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.MobileAlias = MobileAlias;  
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"MobileAlias",option),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUserId (Vw_aspnet_UsersEntity obj)
        { 
            return Adapter.SelectByField(obj,"UserId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUserId (Vw_aspnet_UsersEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"UserId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_UsersEntity></returns>
        public List<Vw_aspnet_UsersEntity> SelectByUserIdLST (Vw_aspnet_UsersEntity obj)
        { 
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UserId"),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_UsersEntity></returns>
        public List<Vw_aspnet_UsersEntity> SelectByUserIdLST (Vw_aspnet_UsersEntity obj,SelectOptions option)
        { 
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"UserId",option),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUserId (Guid UserId )
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.UserId = UserId;  
            return Adapter.SelectByField(obj,"UserId");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUserId (Guid UserId, SelectOptions option)
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.UserId = UserId;  
            return Adapter.SelectByField(obj,"UserId",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_UsersEntity> SelectByUserIdLST (Guid UserId )
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.UserId = UserId;  
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UserId"),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserId duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_UsersEntity> SelectByUserIdLST (Guid UserId, SelectOptions option)
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.UserId = UserId;  
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UserId",option),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUserName (Vw_aspnet_UsersEntity obj)
        { 
            return Adapter.SelectByField(obj,"UserName");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUserName (Vw_aspnet_UsersEntity obj,SelectOptions option)
        { 
            return Adapter.SelectByField(obj,"UserName",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserName duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_UsersEntity></returns>
        public List<Vw_aspnet_UsersEntity> SelectByUserNameLST (Vw_aspnet_UsersEntity obj)
        { 
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UserName"),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserName duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_UsersEntity></returns>
        public List<Vw_aspnet_UsersEntity> SelectByUserNameLST (Vw_aspnet_UsersEntity obj,SelectOptions option)
        { 
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectByField(obj,"UserName",option),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserName 
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUserName (string UserName )
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.UserName = UserName;  
            return Adapter.SelectByField(obj,"UserName");
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public DataTable SelectByUserName (string UserName, SelectOptions option)
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.UserName = UserName;  
            return Adapter.SelectByField(obj,"UserName",option);
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserName 
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_UsersEntity> SelectByUserNameLST (string UserName )
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.UserName = UserName;  
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UserName"),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien UserName duoc set trong object
        /// </summary>
        /// <returns>DataTable</returns>
        public List<Vw_aspnet_UsersEntity> SelectByUserNameLST (string UserName, SelectOptions option)
        { 
            Vw_aspnet_UsersEntity obj = new Vw_aspnet_UsersEntity();
            obj.UserName = UserName;  
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList(Adapter.SelectByField(obj,"UserName",option),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_UsersEntity></returns>
        public List<Vw_aspnet_UsersEntity> SelectWithConditionLST (Vw_aspnet_UsersEntity obj)
        { 
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj),new Vw_aspnet_UsersEntity());
        }

        /// <summary>
        /// Lay du lieu theo cac dieu kien duoc set trong object
        /// </summary>
        /// <returns>List<Vw_aspnet_UsersEntity></returns>
        public List<Vw_aspnet_UsersEntity> SelectWithConditionLST (Vw_aspnet_UsersEntity obj,SelectOptions option)
        { 
            return  (List<Vw_aspnet_UsersEntity>) EntityUtil.CopyDataTableToEntityList( Adapter.SelectWithCondition(obj,option),new Vw_aspnet_UsersEntity());
        }

}
}
